﻿@model GuRenFang.Service.Entity.PageItem
<div class="pagination pagination-right">
    <ul>
        @if (Model.CurrentPage > 1)
        {
            <li>@Html.ActionLink("首页", Model.ActionName, Model.ControllerName, new { page = 1 }, new { @class = "page larger" })</li>
            <li>@Html.ActionLink("上一页", Model.ActionName, Model.ControllerName, new { page = Model.CurrentPage - 1 }, new { @class = "page larger" })</li>
        }
        else
        {
            <li class="disabled"><span>首页</span></li>
            <li class="disabled"><span>上一页</span></li>
            
        }
        <li><span>当前页 @Model.CurrentPage/@Model.TotalPages</span></li>
        @if (Model.CurrentPage < Model.TotalPages)
        {
            <li>@Html.ActionLink("下一页", Model.ActionName, Model.ControllerName, new { page = Model.CurrentPage + 1 }, new { @class = "page larger" })</li>
            <li>@Html.ActionLink("最后一页", Model.ActionName, Model.ControllerName, new { page = Model.TotalPages }, new { @class = "page larger" })</li>
        }
        else
        {
            <li class="disabled"><span>下一页</span></li>
            <li class="disabled"><span>最后一页</span></li>
        }
    </ul>
</div>
